package cn.cheery.springboot.mapper;

import cn.cheery.springboot.entity.UserInfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.data.repository.query.Param;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author Cheery
 * @since 2021-06-30
 */
public interface UserInfoMapper extends BaseMapper<UserInfo> {

    /**
     * 通过账号查询用户
     * @param username
     * @return
     */
    UserInfo findByUsername(@Param("username") String username);
}
